.class public abstract Lcom/esfile/screen/recorder/picture/pngj/chunks/PngChunk;
.super Ljava/lang/Object;
.source "PngChunk.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/esfile/screen/recorder/picture/pngj/chunks/PngChunk$ChunkOrderingConstraint;
    }
.end annotation


# instance fields
.field public final a:Ljava/lang/String;

.field public final b:Z

.field protected final c:Lcom/esfile/screen/recorder/picture/pngj/c;

.field protected d:Lcom/esfile/screen/recorder/picture/pngj/chunks/c;

.field private e:Z

.field protected f:I


# direct methods
.method public constructor <init>(Ljava/lang/String;Lcom/esfile/screen/recorder/picture/pngj/c;)V
    .locals 1

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, 0x0

    .line 2
    iput-boolean v0, p0, Lcom/esfile/screen/recorder/picture/pngj/chunks/PngChunk;->e:Z

    const/4 v0, -0x1

    .line 3
    iput v0, p0, Lcom/esfile/screen/recorder/picture/pngj/chunks/PngChunk;->f:I

    .line 4
    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/pngj/chunks/PngChunk;->a:Ljava/lang/String;

    .line 5
    iput-object p2, p0, Lcom/esfile/screen/recorder/picture/pngj/chunks/PngChunk;->c:Lcom/esfile/screen/recorder/picture/pngj/c;

    .line 6
    invoke-static {p1}, Lcom/esfile/screen/recorder/picture/pngj/chunks/a;->a(Ljava/lang/String;)Z

    move-result p2

    iput-boolean p2, p0, Lcom/esfile/screen/recorder/picture/pngj/chunks/PngChunk;->b:Z

    .line 7
    invoke-static {p1}, Lcom/esfile/screen/recorder/picture/pngj/chunks/a;->b(Ljava/lang/String;)Z

    .line 8
    invoke-static {p1}, Lcom/esfile/screen/recorder/picture/pngj/chunks/a;->c(Ljava/lang/String;)Z

    return-void
.end method


# virtual methods
.method protected final a(IZ)Lcom/esfile/screen/recorder/picture/pngj/chunks/c;
    .locals 2

    .line 1
    new-instance v0, Lcom/esfile/screen/recorder/picture/pngj/chunks/c;

    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/pngj/chunks/PngChunk;->a:Ljava/lang/String;

    invoke-static {v1}, Lcom/esfile/screen/recorder/picture/pngj/chunks/a;->d(Ljava/lang/String;)[B

    move-result-object v1

    invoke-direct {v0, p1, v1, p2}, Lcom/esfile/screen/recorder/picture/pngj/chunks/c;-><init>(I[BZ)V

    return-object v0
.end method

.method final a(I)V
    .locals 0

    .line 2
    iput p1, p0, Lcom/esfile/screen/recorder/picture/pngj/chunks/PngChunk;->f:I

    return-void
.end method

.method final a(Ljava/io/OutputStream;)V
    .locals 2

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/pngj/chunks/PngChunk;->d:Lcom/esfile/screen/recorder/picture/pngj/chunks/c;

    if-eqz v0, :cond_0

    iget-object v0, v0, Lcom/esfile/screen/recorder/picture/pngj/chunks/c;->d:[B

    if-nez v0, :cond_1

    .line 4
    :cond_0
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/picture/pngj/chunks/PngChunk;->b()Lcom/esfile/screen/recorder/picture/pngj/chunks/c;

    move-result-object v0

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/pngj/chunks/PngChunk;->d:Lcom/esfile/screen/recorder/picture/pngj/chunks/c;

    .line 5
    :cond_1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/pngj/chunks/PngChunk;->d:Lcom/esfile/screen/recorder/picture/pngj/chunks/c;

    if-eqz v0, :cond_2

    .line 6
    invoke-virtual {v0, p1}, Lcom/esfile/screen/recorder/picture/pngj/chunks/c;->a(Ljava/io/OutputStream;)V

    return-void

    .line 7
    :cond_2
    new-instance p1, Lcom/esfile/screen/recorder/picture/pngj/PngjExceptionInternal;

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "null chunk ! creation failed for "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-direct {p1, v0}, Lcom/esfile/screen/recorder/picture/pngj/PngjExceptionInternal;-><init>(Ljava/lang/String;)V

    throw p1
.end method

.method protected abstract a()Z
.end method

.method public abstract b()Lcom/esfile/screen/recorder/picture/pngj/chunks/c;
.end method

.method public final c()I
    .locals 1

    .line 1
    iget v0, p0, Lcom/esfile/screen/recorder/picture/pngj/chunks/PngChunk;->f:I

    return v0
.end method

.method public d()I
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/pngj/chunks/PngChunk;->d:Lcom/esfile/screen/recorder/picture/pngj/chunks/c;

    if-eqz v0, :cond_0

    iget v0, v0, Lcom/esfile/screen/recorder/picture/pngj/chunks/c;->a:I

    goto :goto_0

    :cond_0
    const/4 v0, -0x1

    :goto_0
    return v0
.end method

.method public e()J
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/pngj/chunks/PngChunk;->d:Lcom/esfile/screen/recorder/picture/pngj/chunks/c;

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/picture/pngj/chunks/c;->b()J

    move-result-wide v0

    goto :goto_0

    :cond_0
    const-wide/16 v0, -0x1

    :goto_0
    return-wide v0
.end method

.method public abstract f()Lcom/esfile/screen/recorder/picture/pngj/chunks/PngChunk$ChunkOrderingConstraint;
.end method

.method public g()Lcom/esfile/screen/recorder/picture/pngj/chunks/c;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/pngj/chunks/PngChunk;->d:Lcom/esfile/screen/recorder/picture/pngj/chunks/c;

    return-object v0
.end method

.method public h()Z
    .locals 1

    .line 1
    iget-boolean v0, p0, Lcom/esfile/screen/recorder/picture/pngj/chunks/PngChunk;->e:Z

    return v0
.end method

.method public toString()Ljava/lang/String;
    .locals 3

    .line 1
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "chunk id= "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/pngj/chunks/PngChunk;->a:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, " (len="

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p0}, Lcom/esfile/screen/recorder/picture/pngj/chunks/PngChunk;->d()I

    move-result v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v1, " offset="

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p0}, Lcom/esfile/screen/recorder/picture/pngj/chunks/PngChunk;->e()J

    move-result-wide v1

    invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string v1, ")"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method
